//
//  UIToogleButton.h
//  Dolphin
//
//  Created by Handymood on 11-6-12.
//  Copyright 2011 __Hanydmood__. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "ImageUIButton.h"
#import "UIComponentBase.h"
@class ImageUIButton;
@class UIComponentBase;


@interface UIToogleButton : UIComponentBase 
{
    ImageUIButton *playButton;
    ImageUIButton *pauseButton;
}

-(void)buttonInit:(NSString *)playButtonPath
inPauseBtnPath:(NSString *) pauseButtonPath
           autoPlay:(BOOL) inAutoPlay;

-(void)setXY:(CGFloat) inx 
        offy:(CGFloat) iny;
-(void) buttonSizeAdjust:(CGFloat) inwidth
                   height:(CGFloat) inheight;

-(void) mouseDownProcPlay:(id)sender;
-(void) mouseDownProcPause:(id)sender;

-(void) manuallyPlay;
-(void) manuallyPause;

-(BOOL) onPlay;
-(void) reset;

@end
